FemtoScan Online SDK Documentation

Home :: FsOnlineSDK :: fmutl classes

template < class T >
template class key_list

? ^ 
    extends std::list<std::pair<std::string,T>> as public

Provides STL-based list with search capabilities.

Values are indexed by names of type std::string (keys).

Source:
../fmutl/keylist.h:17
Author:
ATC
Version:
1.0
Param:
T list value type.

Contents

^ 
EntityTypeScopeShort Description
~key_listdestructor publicautomatically generated
key_listconstructor publicautomatically generated
key_listconstructor publicautomatically generated
addmethod public Adds empty elemet.
findmethod public Searches for list element by given key.
findmethod public Searches for list element by given key.
nullmethod public Get null element.
operator =operator publicautomatically generated
operator []operator public Searches for list element by given key.
operator []operator public Searches for list element by given key.
removemethod public Remove elemet.
string_findstruct protected Used to perform search procedures in key_list .
value_typetypedef public Basic list element type.

destructor ~key_list

? ^  > 
automatically generated
Source:
../fmutl/keylist.h
Code:
public ~ key_list ( )

constructor key_list

? ^  < > 
automatically generated
Source:
../fmutl/keylist.h
Code:
public key_list ( )

constructor key_list

? ^  < > 
automatically generated
Source:
../fmutl/keylist.h
Code:
public key_list ( const key_list & )

method add

? ^  < > 
Adds empty elemet.
Source:
../fmutl/keylist.h:104
Param:
key element's key.
Returns:
if element already exists, reference to list element of type T , else inserts T() with given key and returns it's reference.
Code:
public T & add ( const std::string & key )

method find

? ^  < > 
Searches for list element by given key.
Source:
../fmutl/keylist.h:55
Param:
key element's key.
Returns:
if found, iterator to list element of type value_type , else end().
Code:
public std::list < std::pair < std::string , T > >::iterator find ( const std::string & key )

method find

? ^  < > 
Searches for list element by given key.
Source:
../fmutl/keylist.h:63
See Also:
find
Code:
public std::list < std::pair < std::string , T > >::const_iterator find ( const std::string & key ) const

method null

? ^  < > 
Get null element.

Get refenrence to the list's null element (for comparison).

Source:
../fmutl/keylist.h:121
Returns:
null element.
Code:
public const T & null ( )

operator =

? ^  < > 
automatically generated
Source:
../fmutl/keylist.h
Code:
public key_list & operator = ( const key_list & )

operator []

? ^  < > 
Searches for list element by given key.
Source:
../fmutl/keylist.h:77
Param:
key element's key.
Returns:
if found, reference to list element of type T , else returns null element.
Code:
public T & operator [] ( const std::string & key )

operator []

? ^  < > 
Searches for list element by given key.
Source:
../fmutl/keylist.h:91
Param:
key element's key.
Returns:
if found, const reference to list element of type T , else returns null element.
Code:
public const T & operator [] ( const std::string & key ) const

method remove

? ^  < > 
Remove elemet.
Source:
../fmutl/keylist.h:114
Param:
key element's key.
Code:
public void remove ( const std::string & key )

struct string_find

? ^  < > 
Used to perform search procedures in key_list .
Source:
../fmutl/keylist.h:23
Code:
protected struct string_find : std::unary_function < std::pair < std::string , T > , bool >

typedef value_type

? ^  < > 
Basic list element type.
Source:
../fmutl/keylist.h:45
Code:
public typedef std::pair < std::string , T > value_type

(C) Advanced Technologies Center, 2002-2006
For support contact us at fsdev@nanoscopy.net