コード例 #1
0
ファイル: Main.cpp プロジェクト: anttitup/c--harkka
int main()
{
	Test* test =new Test();
	test_creating_empty_list(test);
	test_creating_full_list(test);
	test_front(test);
	test_push_front(test);
	test_push_back(test);
	test_pop_front(test);
	test_pop_back(test);
	test_iter(test);
	test_reverse(test);
	test_swap(test);
	test_input(test);	
	test_cp(test);
	test_const_iter(test);
}
コード例 #2
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_field_type(u2 cp_index) {
	test_cp("get_cp_field_type", TAG_FIELD, cp_index, this);
	return get_cp_ref_descriptor(cp_index);
}
コード例 #3
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_method_name(u2 cp_index) {
	test_cp("get_cp_method_name", TAG_METHOD, cp_index, this);
	return get_cp_ref_name(cp_index);
}
コード例 #4
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_class_name(u2 cp_index) {
	test_cp("get_cp_class_name", TAG_CLASS, cp_index, this);
	cp_index = constant_pool[cp_index].name_index;
	return get_cp_utf8(cp_index);
}
コード例 #5
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_field_name(u2 cp_index) {
	test_cp("get_cp_field_name", TAG_FIELD, cp_index, this);
	return get_cp_ref_name(cp_index);
}
コード例 #6
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_utf8(u2 cp_index) {
	test_cp("get_cp_utf8", TAG_UTF8, cp_index, this);
	return constant_pool[cp_index].utf8;
}
コード例 #7
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_string(u2 cp_index) {
	test_cp("get_cp_string", TAG_STRING, cp_index, this);
	cp_index = constant_pool[cp_index].string_index;
	return get_cp_utf8(cp_index);
}
コード例 #8
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_ref_descriptor(u2 cp_index) {
	cp_index = constant_pool[cp_index].Ref.name_and_type_index;
	test_cp("get_cp_ref_descriptor", TAG_NAMEANDTYPE, cp_index, this);
	cp_index = constant_pool[cp_index].NameAndType.descriptor_index;
	return get_cp_utf8(cp_index);
}
コード例 #9
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_imethod_descriptor(u2 cp_index) {
	test_cp("get_cp_imethod_descriptor", TAG_IMETHOD, cp_index, this);
	return get_cp_ref_descriptor(cp_index);
}
コード例 #10
0
ファイル: class.cpp プロジェクト: Gabrielcarvfer/SB2014JVM
char *Class::get_cp_imethod_class(u2 cp_index) {
	test_cp("get_cp_imethod_class", TAG_IMETHOD, cp_index, this);
	return get_cp_ref_class(cp_index);
}