Home
last modified time | relevance | path

Searched refs:employee (Results 1 – 25 of 60) sorted by relevance

123

/third_party/boost/libs/multi_index/test/
Demployee.hpp30 struct employee struct
37 employee(int id_,std::string name_,int age_,int ssn_): in employee() argument
41 employee(const employee& x): in employee() argument
45 employee(BOOST_RV_REF(employee) x): in employee() argument
49 employee& operator=(BOOST_COPY_ASSIGN_REF(employee) x) in operator =() argument
58 employee& operator=(BOOST_RV_REF(employee) x) in operator =() argument
67 bool operator==(const employee& x)const in operator ==() argument
72 bool operator<(const employee& x)const in operator <() argument
77 bool operator!=(const employee& x)const{return !(*this==x);} in operator !=() argument
78 bool operator> (const employee& x)const{return x<*this;} in operator >() argument
[all …]
Dtest_basic.cpp24 bool operator()(const employee& e1,const employee& e2)const in operator ()()
66 std::vector<employee> v; in test_basic()
79 es.insert(employee(0,"Joe",31,1123)); in test_basic()
80 es.insert(employee(5,"Anna",41,1123)); /* clash*/ in test_basic()
81 i1.insert(employee(1,"Robert",27,5601)); in test_basic()
82 es.insert(employee(2,"John",40,7889)); in test_basic()
83 i3.push_back(employee(3,"Albert",20,9012)); in test_basic()
84 i4.insert(employee(4,"John",57,1002)); in test_basic()
85 i5.push_back(employee(0,"Andrew",60,2302)); /* clash */ in test_basic()
87 v.push_back(employee(0,"Joe",31,1123)); in test_basic()
[all …]
Dtest_modifiers.cpp169 es.insert(employee(0,"Joe",31,1123)); in test_modifiers()
171 BOOST_TEST(i1.insert(employee(0,"Joe Jr.",5,2563)).second==false); in test_modifiers()
173 BOOST_TEST(i3.insert(i3.begin(),employee(1,"Victor",5,1123)).second in test_modifiers()
175 BOOST_TEST(i3.push_front(employee(0,"Joe Jr.",5,2563)).second==false); in test_modifiers()
176 BOOST_TEST(i3.push_back(employee(0,"Joe Jr.",5,2563)).second==false); in test_modifiers()
181 i1.insert(it1,employee(1,"Joe Jr.",5,2563)); in test_modifiers()
185 i2.insert(it2,employee(2,"Grandda Joe",64,7881)); in test_modifiers()
189 i3.insert(it3,100,employee(3,"Judy",39,6201)); in test_modifiers()
194 i5.insert(it5,100,employee(4,"Jill",52,3379)); in test_modifiers()
198 es.erase(employee(1,"Joe Jr.",5,2563)); in test_modifiers()
[all …]
Dtest_special_set_ops.cpp68 es.insert(employee(0,"Joe",31,1123)); in test_special_set_ops()
69 es.insert(employee(1,"Robert",27,5601)); in test_special_set_ops()
70 es.insert(employee(2,"John",40,7889)); in test_special_set_ops()
71 es.insert(employee(3,"Albert",20,9012)); in test_special_set_ops()
72 es.insert(employee(4,"John",57,1002)); in test_special_set_ops()
93 BOOST_TEST(es.count(2,employee::comp_id())==1); in test_special_set_ops()
94 BOOST_TEST(es.count(5,employee::comp_id())==0); in test_special_set_ops()
Dtest_copy_assignment.cpp99 es.insert(employee(0,"Petr",60,2837)); in produce_employee_set()
100 es.insert(employee(1,"Jiri",25,2143)); in produce_employee_set()
101 es.insert(employee(2,"Radka",40,4875)); in produce_employee_set()
102 es.insert(employee(3,"Milan",38,3474)); in produce_employee_set()
120 es2.insert(employee(0,"Joe",31,1123)); in test_copy_assignment()
121 es2.insert(employee(1,"Robert",27,5601)); in test_copy_assignment()
122 es2.insert(employee(2,"John",40,7889)); in test_copy_assignment()
123 es2.insert(employee(2,"Aristotle",2388,3357)); /* clash */ in test_copy_assignment()
124 es2.insert(employee(3,"Albert",20,9012)); in test_copy_assignment()
125 es2.insert(employee(4,"John",57,1002)); in test_copy_assignment()
[all …]
Dtest_comparison.cpp51 es.insert(employee(0,"Joe",31,1123)); in test_comparison()
52 es.insert(employee(1,"Robert",27,5601)); in test_comparison()
53 es.insert(employee(2,"John",40,7889)); in test_comparison()
54 es.insert(employee(3,"Albert",20,9012)); in test_comparison()
55 es.insert(employee(4,"John",57,1002)); in test_comparison()
63 es2.insert(employee(0,"Joe",31,1123)); in test_comparison()
64 es2.insert(employee(1,"Robert",27,5601)); in test_comparison()
65 es2.insert(employee(2,"John",40,7889)); in test_comparison()
66 es2.insert(employee(3,"Albert",20,9012)); in test_comparison()
Dtest_observers.cpp28 es.insert(employee(0,"Joe",31,1123)); in test_observers()
29 es.insert(employee(1,"Robert",27,5601)); in test_observers()
30 es.insert(employee(2,"John",40,7889)); in test_observers()
31 es.insert(employee(3,"Albert",20,9012)); in test_observers()
32 es.insert(employee(4,"John",57,1002)); in test_observers()
Dtest_set_ops.cpp64 es.insert(employee(0,"Joe",31,1123)); in test_set_ops()
65 es.insert(employee(1,"Robert",27,5601)); in test_set_ops()
66 es.insert(employee(2,"John",40,7889)); in test_set_ops()
67 es.insert(employee(3,"Albert",20,9012)); in test_set_ops()
68 es.insert(employee(4,"John",57,1002)); in test_set_ops()
75 BOOST_TEST(es.count(employee(10,"",-1,0))==0); in test_set_ops()
Dtest_projection.cpp23 es.insert(employee(0,"Joe",31,1123)); in test_projection()
24 es.insert(employee(1,"Robert",27,5601)); in test_projection()
25 es.insert(employee(2,"John",40,7889)); in test_projection()
26 es.insert(employee(3,"Albert",20,9012)); in test_projection()
27 es.insert(employee(4,"John",57,1002)); in test_projection()
61 it= es.find(employee(1,"Robert",27,5601)); in test_projection()
116 cit= ces.find(employee(4,"John",57,1002)); in test_projection()
/third_party/boost/libs/interprocess/example/
Ddoc_multi_index.cpp38 struct employee struct
43 employee( int id_ in employee() function
61 employee,
64 <bmi::tag<id>, bmi::member<employee,int,&employee::id> >,
66 bmi::tag<name>, bmi::member<employee,shm_string,&employee::name> >,
68 <bmi::tag<age>, bmi::member<employee,int,&employee::age> > >,
69 managed_shared_memory::allocator<employee>::type
108 , segment.get_allocator<employee>()); //Ctor parameters in main()
112 es->insert(employee(0,31, "Joe", ca)); in main()
113 es->insert(employee(1,27, "Robert", ca)); in main()
[all …]
/third_party/boost/libs/assign/test/
Dmulti_index_container.cpp39 struct employee struct
45 employee(int id_,std::string name_,int age_):id(id_),name(name_),age(age_){} in employee() function
47 bool operator==(const employee& x)const in operator ==() argument
52 bool operator<(const employee& x)const in operator <() argument
57 bool operator!=(const employee& x)const{return !(*this==x);} in operator !=() argument
58 bool operator> (const employee& x)const{return x<*this;} in operator >() argument
59 bool operator>=(const employee& x)const{return !(*this<x);} in operator >=() argument
60 bool operator<=(const employee& x)const{return !(x<*this);} in operator <=() argument
64 bool operator()(int x,const employee& e2)const{return x<e2.id;} in operator ()() argument
65 bool operator()(const employee& e1,int x)const{return e1.id<x;} in operator ()()
[all …]
/third_party/boost/libs/multi_index/example/
Dbasic.cpp29 struct employee struct
35 employee(int id_,std::string name_,int age_):id(id_),name(name_),age(age_){} in employee() argument
37 friend std::ostream& operator<<(std::ostream& os,const employee& e) in operator <<()
61 employee,
64 tag<id>, BOOST_MULTI_INDEX_MEMBER(employee,int,id)>,
66 tag<name>,BOOST_MULTI_INDEX_MEMBER(employee,std::string,name)>,
68 tag<age>, BOOST_MULTI_INDEX_MEMBER(employee,int,age)> >
91 es.insert(employee(0,"Joe",31)); in main()
92 es.insert(employee(1,"Robert",27)); in main()
93 es.insert(employee(2,"John",40)); in main()
[all …]
/third_party/boost/libs/local_function/example/
Dn2550_find_if.cpp15 struct employee { struct
17 explicit employee(const int& a_salary): salary(a_salary) {} in employee() argument
19 BOOST_TYPEOF_REGISTER_TYPE(employee) // Register for `NAME` below. in BOOST_TYPEOF_REGISTER_TYPE() argument
22 std::vector<employee> employees; in BOOST_TYPEOF_REGISTER_TYPE()
23 employees.push_back(employee(85000)); in BOOST_TYPEOF_REGISTER_TYPE()
24 employees.push_back(employee(100000)); in BOOST_TYPEOF_REGISTER_TYPE()
25 employees.push_back(employee(120000)); in BOOST_TYPEOF_REGISTER_TYPE()
31 const employee& e) { in BOOST_TYPEOF_REGISTER_TYPE()
37 std::vector<employee>::iterator i = std::find_if( in BOOST_TYPEOF_REGISTER_TYPE()
/third_party/boost/libs/spirit/doc/x3/tutorial/
Demployee.qbk9 [section:employee Employee - Parsing into structs]
23 First, let's create a struct representing an employee:
27 struct employee
36 Then, we need to tell __fusion__ about our employee struct to make it a first-class
46 client::ast::employee,
50 Now we'll write a parser for our employee. Inputs will be of the form:
52 employee{ age, "forename", "surname", salary }
68 x3::rule<class employee, ast::employee> const employee = "employee";
73 lit("employee")
82 BOOST_SPIRIT_DEFINE(employee);
[all …]
Dminimal.qbk14 [tutorial_employee employee example]. This example builds on top of that
24 parser as the [tutorial_employee employee example] for the sake of
40 [[[@../../../example/x3/minimal/employee.hpp employee.hpp]] [Main parser API ]]
42 [[[@../../../example/x3/minimal/employee.cpp employee.cpp]] [Parser instantiation ]]
47 same [tutorial_employee employee example]. So I will skip the details on how
57 struct employee
72 BOOST_FUSION_ADAPT_STRUCT(client::ast::employee,
108 In this example, the top rule is `employee`. We declare `employee` in this
116 using employee_type = x3::rule<class employee, ast::employee>;
120 parser::employee_type employee();
[all …]
Dannotation.qbk14 [tutorial_employee employee example]. This example builds on top of that
20 employee. If we changed the implementation to parse one or more employees,
21 the result would be a std::vector<employee>. We can go on and add more
39 First, we'll update our previous employee struct, this time separating the
41 `employee`. Take note too that we now inherit `person` and `employee` from
60 struct employee : x3::position_tagged
75 BOOST_FUSION_ADAPT_STRUCT(client::ast::employee,
101 As demonstrated in the previous [tutorial_employee employee example], the
148 Now we'll write a parser for our employee. To simplify, inputs will be of the
169 x3::rule<employee_class, ast::employee> const employee = "employee";
[all …]
/third_party/boost/libs/spirit/example/x3/
Demployee.cpp30 struct employee struct
45 BOOST_FUSION_ADAPT_STRUCT(client::ast::employee, argument
65 x3::rule<class employee, ast::employee> const employee = "employee"; variable
79 BOOST_SPIRIT_DEFINE(employee);
100 using client::parser::employee; in main()
108 client::ast::employee emp; in main()
111 bool r = phrase_parse(iter, end, employee, space, emp); in main()
Dannotation.cpp52 struct employee : x3::position_tagged struct
70 BOOST_FUSION_ADAPT_STRUCT(client::ast::employee, argument
114 x3::rule<employee_class, ast::employee> const employee = "employee"; variable
127 auto const employees = employee >> *(',' >> employee);
129 BOOST_SPIRIT_DEFINE(quoted_string, person, employee);
148 std::vector<client::ast::employee>
153 std::vector<client::ast::employee> ast; in parse()
Derror_handling.cpp53 struct employee : x3::position_tagged struct
71 BOOST_FUSION_ADAPT_STRUCT(client::ast::employee, argument
114 x3::rule<employee_class, ast::employee> const employee = "employee"; variable
127 auto const employees = employee >> *(',' >> employee);
129 BOOST_SPIRIT_DEFINE(quoted_string, person, employee);
150 std::vector<client::ast::employee> ast; in parse()
/third_party/boost/libs/spirit/example/qi/
Dreorder_struct.cpp23 struct employee struct
49 client::employee, argument
59 typedef fusion::result_of::as_nview<client::employee, 2, 0>::type name_and_age;
60 typedef fusion::result_of::as_nview<client::employee, 1, 2, 4>::type names_and_salary;
61 typedef fusion::result_of::as_nview<client::employee, 2, 0, 3>::type name_age_and_department;
69 client::employee john; in main()
70 client::employee mary; in main()
71 client::employee tom; in main()
110 std::vector<client::employee> employees; in main()
122 BOOST_FOREACH(client::employee const& e, employees) in main()
Demployee.cpp37 struct employee struct
53 client::employee, argument
68 struct employee_parser : qi::grammar<Iterator, employee(), ascii::space_type>
92 qi::rule<Iterator, employee(), ascii::space_type> start;
123 client::employee emp; in main()
/third_party/boost/libs/spirit/example/x3/minimal/
Demployee_def.hpp33 x3::rule<class employee, ast::employee> const employee = "employee"; variable
47 BOOST_SPIRIT_DEFINE(employee);
50 parser::employee_type employee() in employee() function
52 return parser::employee; in employee()
/third_party/boost/libs/spirit/example/karma/
Dreorder_struct.cpp22 struct employee struct
50 client::employee, argument
64 client::employee john = { "John", "Smith", 25, 2000.50, "Sales" }; in main()
65 client::employee mary = { "Mary", "Higgins", 23, 2200.36, "Marketing" }; in main()
66 client::employee tom = { "Tom", "Taylor", 48, 3200.00, "Boss" }; in main()
87 std::vector<client::employee> employees; in main()
96 fusion::result_of::as_nview<client::employee const, 1, 2, 4>::type in main()
/third_party/typescript/tests/baselines/reference/
DtemplateLiteralsAndDecoratorMetadata.types13 greeting: `boss` | `employee` = `employee`; //template literals on this line cause the issue
14 >greeting : "boss" | "employee"
15 >`employee` : "employee"
/third_party/boost/libs/spirit/doc/qi/
Demployee.qbk23 [import ../../example/qi/employee.cpp]
25 First, let's create a struct representing an employee:
29 Then, we need to tell __fusion__ about our employee struct to make it a first-class
40 Now we'll write a parser for our employee. Inputs will be of the form:
42 employee{ age, "surname", "forename", salary }
48 The full cpp file for this example can be found here: [@../../example/qi/employee.cpp]
53 struct employee_parser : grammar<Iterator, employee(), space_type>
58 employee()
60 meaning, the parser generates employee structs. `employee_parser` skips white
68 rule<Iterator, employee(), space_type> start;
[all …]

123