proxygen
Integer Class Reference

Public Member Functions

 Integer (KeyT v=0)
 
Integeroperator= (const Integer &a)
 
bool operator== (const Integer &a) const
 

Private Attributes

KeyT v_
 

Detailed Description

Definition at line 327 of file AtomicHashMapTest.cpp.

Constructor & Destructor Documentation

Integer::Integer ( KeyT  v = 0)
inlineexplicit

Definition at line 329 of file AtomicHashMapTest.cpp.

329 : v_(v) {}

Member Function Documentation

Integer& Integer::operator= ( const Integer a)
inline

Definition at line 331 of file AtomicHashMapTest.cpp.

References v_.

331  {
332  static bool throwException_ = false;
333  throwException_ = !throwException_;
334  if (throwException_) {
335  throw 1;
336  }
337  v_ = a.v_;
338  return *this;
339  }
bool Integer::operator== ( const Integer a) const
inline

Definition at line 341 of file AtomicHashMapTest.cpp.

References v_.

341  {
342  return v_ == a.v_;
343  }

Member Data Documentation

KeyT Integer::v_
private

Definition at line 346 of file AtomicHashMapTest.cpp.

Referenced by operator=(), and operator==().


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