The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | Friends | List of all members
halo::halo_record Class Reference

RAII object which manages a halo. More...

#include <halo.hpp>

Inheritance diagram for halo::halo_record:
Inheritance graph

Public Member Functions

 halo_record ()
 halo::halo_record implementation More...
 
 halo_record (int id, const boost::shared_ptr< halo_impl > &my_manager)
 
 ~halo_record ()
 
bool valid () const
 

Private Attributes

int id_
 
boost::weak_ptr< halo_implmy_manager_
 

Friends

class manager
 

Detailed Description

RAII object which manages a halo.

When it goes out of scope it removes the corresponding halo entry.

Definition at line 81 of file halo.hpp.

Constructor & Destructor Documentation

halo::halo_record::halo_record ( )

halo::halo_record implementation

Definition at line 521 of file halo.cpp.

halo::halo_record::halo_record ( int  id,
const boost::shared_ptr< halo_impl > &  my_manager 
)

Definition at line 526 of file halo.cpp.

halo::halo_record::~halo_record ( )

Definition at line 531 of file halo.cpp.

References e, id_, my_manager_, and valid().

Member Function Documentation

bool halo::halo_record::valid ( ) const
inline

Definition at line 88 of file halo.hpp.

References id_, and my_manager_.

Referenced by ~halo_record().

Friends And Related Function Documentation

friend class manager
friend

Definition at line 92 of file halo.hpp.

Member Data Documentation

int halo::halo_record::id_
private

Definition at line 94 of file halo.hpp.

Referenced by valid(), and ~halo_record().

boost::weak_ptr<halo_impl> halo::halo_record::my_manager_
private

Definition at line 95 of file halo.hpp.

Referenced by valid(), and ~halo_record().


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