Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
ISIS::Neighbor_Container Class Reference

#include <isis.h>

Collaboration diagram for ISIS::Neighbor_Container:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Neighbor_Container ()
std::vector< std::string >
::iterator 
find_element (const std::string)
bool contains (const std::string)
void push (const std::string)
void remove (std::string)
int count ()

Private Attributes

bool locked
std::vector< std::string > content

Detailed Description

Definition at line 14 of file isis.h.


Constructor & Destructor Documentation

Definition at line 19 of file isis.h.

:locked(false) {}

Member Function Documentation

bool ISIS::Neighbor_Container::contains ( const std::string  val)

Definition at line 34 of file isis.cpp.

                                                     {
    while (locked) {}
    locked = true;
    bool ret_val = (content.end() != find(content.begin(), content.end(), val));
    locked = false;
    return ret_val;
}

Here is the caller graph for this function:

Definition at line 57 of file isis.cpp.

                              {
    return (int) content.size();
}

Here is the caller graph for this function:

std::vector< std::string >::iterator ISIS::Neighbor_Container::find_element ( const std::string  value)

Definition at line 30 of file isis.cpp.

                                                                                   {
    return find(content.begin(), content.end(), value);
}

Here is the caller graph for this function:

void ISIS::Neighbor_Container::push ( const std::string  val)

Definition at line 42 of file isis.cpp.

                                                 {
    while (locked) {}
    locked = true;
    content.push_back(val);
    locked = false;
}

Here is the caller graph for this function:

void ISIS::Neighbor_Container::remove ( std::string  value)

Definition at line 49 of file isis.cpp.

                                               {
    while (locked) {}
    locked = true;
    std::vector<std::string>::iterator it = find_element(value);
    if (it != content.end()) content.erase(it);
    locked = false;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::vector<std::string> ISIS::Neighbor_Container::content [private]

Definition at line 17 of file isis.h.

Definition at line 16 of file isis.h.


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