OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Attributes | Protected Attributes | Friends | List of all members
ossimId Class Reference

#include <ossimId.h>

Public Member Functions

 ossimId (ossim_int64 id=0)
 
virtual ~ossimId ()
 
virtual void print (std::ostream &out) const
 
void setId (ossim_int64 id)
 
ossim_int64 getId () const
 
bool operator== (const ossimId &rhs) const
 
bool operator!= (const ossimId &rhs) const
 
bool operator== (ossim_int64 rhs) const
 
bool operator!= (ossim_int64 rhs) const
 
bool operator< (const ossimId &rhs) const
 
bool operator<= (const ossimId &rhs) const
 
bool operator> (const ossimId &rhs) const
 
bool operator>= (const ossimId &rhs) const
 
bool operator< (ossim_int64 rhs) const
 
bool operator> (ossim_int64 rhs) const
 
bool operator<= (ossim_int64 rhs) const
 
bool operator>= (ossim_int64 rhs) const
 

Static Public Attributes

static const ossim_int64 INVALID_ID = -1
 

Protected Attributes

ossim_int64 theId
 

Friends

OSSIM_DLL std::ostream & operator<< (std::ostream &out, const ossimId &data)
 

Detailed Description

Definition at line 16 of file ossimId.h.

Constructor & Destructor Documentation

◆ ossimId()

ossimId::ossimId ( ossim_int64  id = 0)
inlineexplicit

Definition at line 21 of file ossimId.h.

22  :theId(id)
23  {}
ossim_int64 theId
Definition: ossimId.h:85

◆ ~ossimId()

virtual ossimId::~ossimId ( )
inlinevirtual

Definition at line 24 of file ossimId.h.

24 {}

Member Function Documentation

◆ getId()

ossim_int64 ossimId::getId ( ) const
inline

◆ operator!=() [1/2]

bool ossimId::operator!= ( const ossimId rhs) const
inline

Definition at line 35 of file ossimId.h.

References theId.

36  {
37  return (theId != rhs.theId);
38  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator!=() [2/2]

bool ossimId::operator!= ( ossim_int64  rhs) const
inline

Definition at line 44 of file ossimId.h.

45  {
46  return (theId != rhs);
47  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator<() [1/2]

bool ossimId::operator< ( const ossimId rhs) const
inline

Definition at line 49 of file ossimId.h.

References theId.

50  {
51  return (theId < rhs.theId);
52  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator<() [2/2]

bool ossimId::operator< ( ossim_int64  rhs) const
inline

Definition at line 66 of file ossimId.h.

67  {
68  return (theId < rhs);
69  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator<=() [1/2]

bool ossimId::operator<= ( const ossimId rhs) const
inline

Definition at line 53 of file ossimId.h.

References theId.

54  {
55  return (theId <= rhs.theId);
56  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator<=() [2/2]

bool ossimId::operator<= ( ossim_int64  rhs) const
inline

Definition at line 74 of file ossimId.h.

75  {
76  return (theId <= rhs);
77  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator==() [1/2]

bool ossimId::operator== ( const ossimId rhs) const
inline

Definition at line 31 of file ossimId.h.

References theId.

32  {
33  return (theId == rhs.theId);
34  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator==() [2/2]

bool ossimId::operator== ( ossim_int64  rhs) const
inline

Definition at line 40 of file ossimId.h.

41  {
42  return (theId == rhs);
43  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator>() [1/2]

bool ossimId::operator> ( const ossimId rhs) const
inline

Definition at line 57 of file ossimId.h.

References theId.

58  {
59  return (theId > rhs.theId);
60  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator>() [2/2]

bool ossimId::operator> ( ossim_int64  rhs) const
inline

Definition at line 70 of file ossimId.h.

71  {
72  return (theId > rhs);
73  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator>=() [1/2]

bool ossimId::operator>= ( const ossimId rhs) const
inline

Definition at line 61 of file ossimId.h.

References theId.

62  {
63  return (theId >= rhs.theId);
64  }
ossim_int64 theId
Definition: ossimId.h:85

◆ operator>=() [2/2]

bool ossimId::operator>= ( ossim_int64  rhs) const
inline

Definition at line 78 of file ossimId.h.

79  {
80  return (theId >= rhs);
81  }
ossim_int64 theId
Definition: ossimId.h:85

◆ print()

void ossimId::print ( std::ostream &  out) const
virtual

Definition at line 19 of file ossimId.cpp.

References theId.

Referenced by operator<<().

20 {
21  out << "id: " << theId;
22 }
ossim_int64 theId
Definition: ossimId.h:85

◆ setId()

void ossimId::setId ( ossim_int64  id)
inline

Definition at line 28 of file ossimId.h.

28 {theId = id;}
ossim_int64 theId
Definition: ossimId.h:85

Friends And Related Function Documentation

◆ operator<<

OSSIM_DLL std::ostream& operator<< ( std::ostream &  out,
const ossimId data 
)
friend

Definition at line 13 of file ossimId.cpp.

14 {
15  data.print(out);
16  return out;
17 }
virtual void print(std::ostream &out) const
Definition: ossimId.cpp:19

Member Data Documentation

◆ INVALID_ID

const ossim_int64 ossimId::INVALID_ID = -1
static

◆ theId

ossim_int64 ossimId::theId
protected

Definition at line 85 of file ossimId.h.

Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and print().


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