Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Data Fields | Static Public Attributes
ForLoop Struct Reference

Public Types

typedef std::pair
< TemplateFileServer::Replacements::iterator,
TemplateFileServer::Replacements::iterator > 
range
 

Public Member Functions

 ForLoop (size_t s, TemplateFileServer::Replacements &r, const std::vector< Anope::string > &v, const std::vector< Anope::string > &r_names)
 
void increment (const TemplateFileServer::Replacements &r)
 
bool finished (const TemplateFileServer::Replacements &r) const
 

Data Fields

size_t start
 
std::vector< Anope::stringvars
 
std::vector< rangeranges
 

Static Public Attributes

static std::vector< ForLoopStack
 

Detailed Description

Definition at line 17 of file template_fileserver.cpp.

Member Typedef Documentation

typedef std::pair<TemplateFileServer::Replacements::iterator, TemplateFileServer::Replacements::iterator> ForLoop::range

Definition at line 23 of file template_fileserver.cpp.

Constructor & Destructor Documentation

ForLoop::ForLoop ( size_t  s,
TemplateFileServer::Replacements r,
const std::vector< Anope::string > &  v,
const std::vector< Anope::string > &  r_names 
)
inline

Definition at line 26 of file template_fileserver.cpp.

Member Function Documentation

bool ForLoop::finished ( const TemplateFileServer::Replacements r) const
inline

Definition at line 43 of file template_fileserver.cpp.

Referenced by TemplateFileServer::Serve().

void ForLoop::increment ( const TemplateFileServer::Replacements r)
inline

Definition at line 32 of file template_fileserver.cpp.

Referenced by TemplateFileServer::Serve().

Field Documentation

std::vector<range> ForLoop::ranges

Definition at line 24 of file template_fileserver.cpp.

Referenced by FindReplacement().

std::vector< ForLoop > ForLoop::Stack
static

Definition at line 19 of file template_fileserver.cpp.

Referenced by FindReplacement(), and TemplateFileServer::Serve().

size_t ForLoop::start

Definition at line 21 of file template_fileserver.cpp.

Referenced by TemplateFileServer::Serve().

std::vector<Anope::string> ForLoop::vars

Definition at line 22 of file template_fileserver.cpp.

Referenced by FindReplacement().


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