common: code refactoring

renamed internal module name IteratorModule -> IteratorAccessor
This commit is contained in:
Hermet Park 2021-10-22 23:14:23 +09:00 committed by Hermet Park
parent cc9b5669e5
commit 47334800c6
6 changed files with 14 additions and 14 deletions

View file

@ -112,7 +112,7 @@ $(function() {
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor"> friend Canvas; \</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor"> friend Scene; \</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor"> friend Picture; \</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor"> friend IteratorModule; \</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor"> friend IteratorAccessor; \</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#define _TVG_DECALRE_IDENTIFIER() \</span></div>
@ -124,7 +124,7 @@ $(function() {
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">class </span>RenderMethod;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">class </span>IteratorModule;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keyword">class </span>IteratorAccessor;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="keyword">class </span>Scene;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keyword">class </span>Picture;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keyword">class </span>Canvas;</div>

View file

@ -50,7 +50,7 @@ protected: \
friend Canvas; \
friend Scene; \
friend Picture; \
friend IteratorModule
friend IteratorAccessor
#define _TVG_DECALRE_IDENTIFIER() \
@ -61,7 +61,7 @@ namespace tvg
{
class RenderMethod;
class IteratorModule;
class IteratorAccessor;
class Scene;
class Picture;
class Canvas;

View file

@ -19,7 +19,7 @@ source_file = [
'tvgLzw.h',
'tvgPictureImpl.h',
'tvgRender.h',
'tvgIteratorModule.h',
'tvgIteratorAccessor.h',
'tvgSaveModule.h',
'tvgSceneImpl.h',
'tvgShapeImpl.h',

View file

@ -19,18 +19,18 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef _TVG_ITERATOR_MODULE_H_
#define _TVG_ITERATOR_MODULE_H_
#ifndef _TVG_ITERATOR_ACCESSOR_H_
#define _TVG_ITERATOR_ACCESSOR_H_
#include "tvgPaint.h"
namespace tvg
{
class IteratorModule
class IteratorAccessor
{
public:
//Utility Method: Iterator Delegator
//Utility Method: Iterator Accessor
Iterator* iterator(const Paint* paint)
{
return paint->pImpl->iterator();
@ -39,4 +39,4 @@ public:
}
#endif //_TVG_ITERATOR_MODULE_H_
#endif //_TVG_ITERATOR_ACCESSOR_H_

View file

@ -22,12 +22,12 @@
#ifndef _TVG_SAVE_MODULE_H_
#define _TVG_SAVE_MODULE_H_
#include "tvgIteratorModule.h"
#include "tvgIteratorAccessor.h"
namespace tvg
{
class SaveModule : public IteratorModule
class SaveModule : public IteratorAccessor
{
public:
virtual ~SaveModule() {}

View file

@ -21,7 +21,7 @@
*/
#include <thorvg.h>
#include "tvgIteratorModule.h"
#include "tvgIteratorAccessor.h"
#include <emscripten/bind.h>
@ -29,7 +29,7 @@ using namespace emscripten;
using namespace std;
using namespace tvg;
class __attribute__((visibility("default"))) ThorvgWasm : public IteratorModule
class __attribute__((visibility("default"))) ThorvgWasm : public IteratorAccessor
{
public:
static unique_ptr<ThorvgWasm> create()