spnklist.hpp
来自「linux 下的程序源代码」· HPP 代码 · 共 55 行
HPP
55 行
/* * Copyright 2008 Stephen Liu * For license terms, see the file COPYING along with this library. */#ifndef __spnklist_hpp__#define __spnklist_hpp__class SP_NKVector {public: static const int LAST_INDEX; SP_NKVector( int initCount = 2 ); virtual ~SP_NKVector(); int getCount() const; int append( void * value ); const void * getItem( int index ) const; void * takeItem( int index ); void clean();private: SP_NKVector( SP_NKVector & ); SP_NKVector & operator=( SP_NKVector & ); int mMaxCount; int mCount; void ** mFirst;};class SP_NKStringList {public: SP_NKStringList(); ~SP_NKStringList(); int getCount() const; int directAppend( char * value ); int append( const char * value, int len = 0 ); const char * getItem( int index ) const; int remove( int index ); char * takeItem( int index ); int seek( const char * sample ) const; char * getMerge( int * len = 0, const char * sep = 0 ); void clean();private: SP_NKStringList( SP_NKStringList & ); SP_NKStringList & operator=( SP_NKStringList & ); SP_NKVector * mList;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?