Poster of Linux kernelThe best gift for a Linux geek
tlp::DataSet

tlp::DataSet

Section: Tulip Graph Library (3) Updated: 19 Jul 2010
Local index Up
 

NAME

tlp::DataSet -  

SYNOPSIS


#include <Reflect.h>  

Public Member Functions


DataSet ()

DataSet (const DataSet &set)

DataSet & operator= (const DataSet &set)

~DataSet ()

template<typename T > bool get (const std::string &str, T &value) const

template<typename T > bool getAndFree (const std::string &str, T &value)

template<typename T > void set (const std::string &str, const T &value)

bool exist (const std::string &str) const

void remove (const std::string &str)

Iterator< std::pair< std::string, DataType * > > * getValues () const
 

Detailed Description

A container which allows insertion of different types. The inserted data must have a copy-constructor well done  

Constructor & Destructor Documentation

 

tlp::DataSet::DataSet () [inline]

 

tlp::DataSet::DataSet (const DataSet & set)

 

tlp::DataSet::~DataSet ()

 

Member Function Documentation

 

bool tlp::DataSet::exist (const std::string & str) constreturn true if str exists else false.

 

template<typename T > bool tlp::DataSet::get (const std::string & str, T & value) const [inline]Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true.

 

template<typename T > bool tlp::DataSet::getAndFree (const std::string & str, T & value) [inline]Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true. The data is removed after the call.

 

Iterator< std::pair<std::string, DataType*> >* tlp::DataSet::getValues () constReturn an iterator on all values

 

DataSet& tlp::DataSet::operator= (const DataSet & set)

 

void tlp::DataSet::remove (const std::string & str)remove a named pair

 

template<typename T > void tlp::DataSet::set (const std::string & str, const T & value) [inline]Set the value of the variable str.

 

Author

Generated automatically by Doxygen for Tulip Graph Library from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
Constructor & Destructor Documentation
tlp::DataSet::DataSet () [inline]
tlp::DataSet::DataSet (const DataSet & set)
tlp::DataSet::~DataSet ()
Member Function Documentation
bool tlp::DataSet::exist (const std::string & str) constreturn true if str exists else false.
template<typename T > bool tlp::DataSet::get (const std::string & str, T & value) const [inline]Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true.
template<typename T > bool tlp::DataSet::getAndFree (const std::string & str, T & value) [inline]Returns a copy of the value of the variable with name str. Type are checked in Debug Mode. If the variable str doesn't exist return false else true. The data is removed after the call.
Iterator< std::pair<std::string, DataType*> >* tlp::DataSet::getValues () constReturn an iterator on all values
DataSet& tlp::DataSet::operator= (const DataSet & set)
void tlp::DataSet::remove (const std::string & str)remove a named pair
template<typename T > void tlp::DataSet::set (const std::string & str, const T & value) [inline]Set the value of the variable str.
Author

This document was created by man2html, using the manual pages.
Time: 22:28:14 GMT, April 16, 2011