C++ main module for emicrom Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CORE_List Class Referenceabstract

this class describes a list interface More...

#include <CORE_List.h>

Inheritance diagram for CORE_List:
Inheritance graph
[legend]

Public Member Functions

 CORE_List ()
 build a list More...
 
virtual ~CORE_List ()
 destroy a list More...
 
virtual void clear ()=0
 clear the list More...
 

Static Public Member Functions

template<class Q >
static tBoolean compare (const Q &a, const Q &b, const tFlag &order)
 compare 2 object a & b More...
 
static tBoolean compareString (const tString &a, const tString &b, const tFlag &order)
 compare 2 string a & b More...
 
static tFlag reverse (const tFlag &oder)
 return the reverse order More...
 

Static Public Attributes

static const tFlag NO_ORDER =0
 
static const tFlag EQ =1
 
static const tFlag NEQ =2
 
static const tFlag LT =3
 = More...
 
static const tFlag LE =4
 
static const tFlag GT =5
 
static const tFlag GE =6
 

Detailed Description

this class describes a list interface

Constructor & Destructor Documentation

◆ CORE_List()

CORE_List::CORE_List ( )

build a list

◆ ~CORE_List()

CORE_List::~CORE_List ( )
virtual

destroy a list

Member Function Documentation

◆ clear()

virtual void CORE_List::clear ( )
pure virtual

◆ compare()

template<class Q >
static tBoolean CORE_List::compare ( const Q &  a,
const Q &  b,
const tFlag order 
)
inlinestatic

compare 2 object a & b

Parameters
athe first object to compare
b: the second object to compare
orderthe type of order in EQ,NEQ,LT,LE,GT,GE (=,!=,<,<=,>,>=)
Returns
the comparison between a and b with respect to order

Referenced by compareString(), CORE_ArrayList< tString >::insert(), CORE_Vector< T >::search(), CORE_ArrayList< tString >::sort(), and CORE_Vector< T >::sort().

Here is the caller graph for this function:

◆ compareString()

static tBoolean CORE_List::compareString ( const tString a,
const tString b,
const tFlag order 
)
inlinestatic

compare 2 string a & b

Parameters
athe first string to compare
b: the second string to compare
orderthe type of order in EQ,NEQ,LT,LE,GT,GE (=,!=,<,<=,>,>=)
Returns
the comparison between a and b with respect to order

References compare(), reverse(), and tFlag.

Here is the call graph for this function:

◆ reverse()

tFlag CORE_List::reverse ( const tFlag oder)
static

return the reverse order

Parameters
oderthe order to reverse
Returns
the reverse order

References GE, GT, LE, and LT.

Referenced by compareString(), and CORE_ArrayList< tString >::reverse().

Here is the caller graph for this function:

Member Data Documentation

◆ EQ

const tFlag CORE_List::EQ =1
static

◆ GE

const tFlag CORE_List::GE =6
static

Referenced by reverse().

◆ GT

const tFlag CORE_List::GT =5
static

Referenced by reverse(), and CORE_Test::testString().

◆ LE

const tFlag CORE_List::LE =4
static

Referenced by reverse().

◆ LT

const tFlag CORE_List::LT =3
static

◆ NEQ

const tFlag CORE_List::NEQ =2
static

◆ NO_ORDER

const tFlag CORE_List::NO_ORDER =0
static

The documentation for this class was generated from the following files: