Module: Coopy::View

Included in:
SimpleView, TableView
Defined in:
lib/coopy/view.rb

Overview

Optimize access to arrays of primitives, avoid needing each item to be wrapped individually in some kind of access object. Anticipate future optimization with view pools.

Instance Method Summary collapse

Instance Method Details

#equals(d1, d2) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/coopy/view.rb', line 25

def equals(d1, d2) 
  raise NotImplementedError
end

#get_bag(d) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/coopy/view.rb', line 13

def get_bag(d) 
  raise NotImplementedError
end

#get_table(d) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/coopy/view.rb', line 17

def get_table(d) 
  raise NotImplementedError
end

#has_structure?(d) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/coopy/view.rb', line 21

def has_structure?(d) 
  raise NotImplementedError
end

#to_datum(str) ⇒ Object

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/coopy/view.rb', line 29

def to_datum(str) 
  raise NotImplementedError
end

#to_s(d) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/coopy/view.rb', line 9

def to_s(d) 
  raise NotImplementedError
end