Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ost_mapindex(3) [debian man page]

ost::MapIndex(3)					     Library Functions Manual						  ost::MapIndex(3)

NAME
ost::MapIndex - The MapIndex allows linear access into a MapTable, that otherwise could have its elements being retrieved only by key. SYNOPSIS
#include <object.h> Public Member Functions MapIndex () Creates an empty map index (pointing to nothing). MapIndex (MapObject *theObject) Creates a map index pointing to a specific map object. MapIndex (const MapIndex &theIndex) Creates a copy of a given map index. void * operator* () const Dereference operator: the pointed object it is returned as void * for easy re-cast. MapIndex & operator= (MapObject *theObject) Assignment operator to avoid implicit cast. MapIndex & operator++ () Prefix increment operator, to be used in loops and such. MapIndex operator++ (int) Postfix increment operator, to be used in loops and such. bool operator== (const MapIndex &theIndex) const Comparison operator, between two MapIndex's. bool operator!= (const MapIndex &theIndex) const bool operator== (const MapObject *theObject) const Comparison operator, between the MapIndex and a MapObject, useful to avoid casts for sake of clearness. bool operator!= (const MapObject *theObject) const Detailed Description The MapIndex allows linear access into a MapTable, that otherwise could have its elements being retrieved only by key. It can be increased, checked and dereferenced like a pointer, by means of suitable operators. Author: Sergio Repetto s.repetto@pentaengineering.it Index object to access MapTable elements Constructor &; Destructor Documentation ost::MapIndex::MapIndex () [inline] Creates an empty map index (pointing to nothing). ost::MapIndex::MapIndex (MapObject *theObject) [inline] Creates a map index pointing to a specific map object. Parameters: the indexed object ost::MapIndex::MapIndex (const MapIndex &theIndex) [inline] Creates a copy of a given map index. Parameters: the source index object Member Function Documentation bool ost::MapIndex::operator!= (const MapIndex &theIndex) const [inline] bool ost::MapIndex::operator!= (const MapObject *theObject) const [inline] void* ost::MapIndex::operator* () const [inline] Dereference operator: the pointed object it is returned as void * for easy re-cast. Returns: pointer to indexed object. MapIndex& ost::MapIndex::operator++ () Prefix increment operator, to be used in loops and such. Returns: the object itself, as changed. MapIndex ost::MapIndex::operator++ (int) [inline] Postfix increment operator, to be used in loops and such. Returns: the object itself, as changed. References operator++(). Referenced by operator++(). MapIndex& ost::MapIndex::operator= (MapObject *theObject) Assignment operator to avoid implicit cast. Returns: the object itself, as changed. bool ost::MapIndex::operator== (const MapIndex &theIndex) const [inline] Comparison operator, between two MapIndex's. Returns: the object itself, as changed. bool ost::MapIndex::operator== (const MapObject *theObject) const [inline] Comparison operator, between the MapIndex and a MapObject, useful to avoid casts for sake of clearness. Returns: the object itself, as changed. Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::MapIndex(3)

Check Out this Related Man Page

ost::Date(3)						     Library Functions Manual						      ost::Date(3)

NAME
ost::Date - The Date class uses a julian date representation of the current year, month, and day. SYNOPSIS
#include <numbers.h> Inherited by ost::DateNumber, and ost::Datetime. Public Member Functions Date (time_t tm) Date (tm *dt) Date (char *str, size_t size=0) Date (int year, unsigned month, unsigned day) Date () virtual ~Date () int getYear (void) const unsigned getMonth (void) const unsigned getDay (void) const unsigned getDayOfWeek (void) const char * getDate (char *buffer) const time_t getDate (void) const time_t getDate (tm *buf) const long getValue (void) const void setDate (const char *str, size_t size=0) bool isValid (void) const operator long () const String operator() () const Date & operator++ () Date & operator-- () Date & operator+= (const long val) Date & operator-= (const long val) int operator== (const Date &date) int operator!= (const Date &date) int operator< (const Date &date) int operator<= (const Date &date) int operator> (const Date &date) int operator>= (const Date &date) bool operator! () const Protected Member Functions void toJulian (long year, long month, long day) void fromJulian (char *buf) const virtual void update (void) A method to use to 'post' any changed values when shadowing a mixed object class. Protected Attributes long julian Friends Date operator+ (const Date &date, const long val) Date operator- (const Date &date, const long val) Date operator+ (const long val, const Date &date) Date operator- (const long val, const Date &date) Detailed Description The Date class uses a julian date representation of the current year, month, and day. This is then manipulated in several forms and may be exported as needed. Author: David Sugar dyfet@ostel.com julian number based date class. Constructor &; Destructor Documentation ost::Date::Date (time_ttm) ost::Date::Date (tm *dt) ost::Date::Date (char *str, size_tsize = 0) ost::Date::Date (intyear, unsignedmonth, unsignedday) ost::Date::Date () virtual ost::Date::~Date () [virtual] Member Function Documentation void ost::Date::fromJulian (char *buf) const [protected] char* ost::Date::getDate (char *buffer) const time_t ost::Date::getDate (void) const time_t ost::Date::getDate (tm *buf) const unsigned ost::Date::getDay (void) const unsigned ost::Date::getDayOfWeek (void) const unsigned ost::Date::getMonth (void) const long ost::Date::getValue (void) const int ost::Date::getYear (void) const bool ost::Date::isValid (void) const Reimplemented in ost::Datetime. ost::Date::operator long () const [inline] bool ost::Date::operator! (void) const [inline] Reimplemented in ost::Datetime. int ost::Date::operator!= (const Date &date) String ost::Date::operator() () const Date& ost::Date::operator++ () Date& ost::Date::operator+= (const longval) Date& ost::Date::operator-- () Date& ost::Date::operator-= (const longval) int ost::Date::operator< (const Date &date) int ost::Date::operator<= (const Date &date) int ost::Date::operator== (const Date &date) int ost::Date::operator> (const Date &date) int ost::Date::operator>= (const Date &date) void ost::Date::setDate (const char *str, size_tsize = 0) void ost::Date::toJulian (longyear, longmonth, longday) [protected] virtual void ost::Date::update (void) [protected], [virtual] A method to use to 'post' any changed values when shadowing a mixed object class. This is used by DateNumber. Reimplemented in ost::DateNumber. Friends And Related Function Documentation Date operator+ (const Date &date, const longval) [friend] Date operator+ (const longval, const Date &date) [friend] Date operator- (const Date &date, const longval) [friend] Date operator- (const longval, const Date &date) [friend] Member Data Documentation long ost::Date::julian [protected] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Date(3)
Man Page