Public Member Functions | Public Attributes | Protected Attributes

cmn_FastSearch Class Reference
[G_new_group]

This class is super class for different fast search algorithm on buffer. More...

#include <cmn_FastSearch.h>

Inheritance diagram for cmn_FastSearch:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 cmn_FastSearch ()
 cmn_FastSearch (const char *const a_buffer_p, const int a_bufLen)
virtual ~cmn_FastSearch ()
void SetBuffer (char *a_buffer_p, ivd_FileBufSize_t a_bufLen)
 to set or reset the searched buffer
virtual void SetPattern (const string &a_pattern)=0
 set new search pattern
virtual Int32_t Find ()=0
 this method must be implemented in derived classes

Public Attributes

 log_CLASSID_m
 Macro to add class name member s_className.

Protected Attributes

const char * m_buffer_p
 buffer where to seach
ivd_FileBufSize_t m_bufLen

Detailed Description

This class is super class for different fast search algorithm on buffer.

Definition at line 59 of file cmn_FastSearch.h.


Constructor & Destructor Documentation

cmn_FastSearch::cmn_FastSearch (  ) 

Definition at line 51 of file cmn_FastSearch.cpp.

References log_FUNC_m.

cmn_FastSearch::cmn_FastSearch ( const char *const   a_buffer_p,
const int  a_bufLen 
)

Definition at line 62 of file cmn_FastSearch.cpp.

References log_FUNC_m.

            :
            m_buffer_p(a_buffer_p), 
            m_bufLen(a_bufLen)
{
    log_FUNC_m(cmn_FastSearch);
    //Empty
}

virtual cmn_FastSearch::~cmn_FastSearch (  )  [inline, virtual]

Definition at line 67 of file cmn_FastSearch.h.

{};


Member Function Documentation

virtual Int32_t cmn_FastSearch::Find (  )  [pure virtual]

this method must be implemented in derived classes

Implemented in cmn_FastPattSearch, cmn_FastZeroSearch, and cmn_FastZeroRecSearch.

Referenced by cmn_FastFileSearch::Find().

Here is the caller graph for this function:

void cmn_FastSearch::SetBuffer ( char *  a_buffer_p,
ivd_FileBufSize_t  a_bufLen 
) [inline]

to set or reset the searched buffer

Definition at line 82 of file cmn_FastSearch.h.

Referenced by cmn_FastFileSearch::cmn_FastFileSearch(), and cmn_FastFileSearch::Find().

                                                                        { 
        m_buffer_p = a_buffer_p;
        m_bufLen   = a_bufLen;
    };

Here is the caller graph for this function:

virtual void cmn_FastSearch::SetPattern ( const string &  a_pattern  )  [pure virtual]

set new search pattern

Implemented in cmn_FastPattSearch, cmn_FastZeroSearch, and cmn_FastZeroRecSearch.


Member Data Documentation

Macro to add class name member s_className.

Reimplemented in cmn_FastPattSearch, cmn_FastZeroSearch, and cmn_FastZeroRecSearch.

Definition at line 77 of file cmn_FastSearch.h.

const char* cmn_FastSearch::m_buffer_p [protected]

buffer where to seach

Definition at line 67 of file cmn_FastSearch.h.

Referenced by cmn_FastZeroRecSearch::Find(), cmn_FastZeroSearch::Find(), and cmn_FastPattSearch::Find().


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